package org.sparkle.web.page;

import java.io.Serializable;

import org.sparkle.html.impl.basic.Html;

public abstract class AbstractPage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8005946797237675909L;
	
	private Html html;

	public Object renderInt(){
		Object res=render();
		if(res==null){
			res="Pagina di Test";
		}
		return res;
	}
	
	public abstract Object render();

	public Html getHtml() {
		if(html==null)
			html=new Html("");
		return html;
	}

	public void setHtml(Html html) {
		this.html = html;
	}
	
}
